package com.sx.pipeline.app.config

/**
 * @Author: YY
 * @Date: 2022/4/23
 * @Description: TODO
 */

// 注册类型
enum class RegisterType(val code: Int, val flag: String) {
    PERSONAL_REG(0, "个人注册"),
    UNIT_REGISTER(1,"单位注册")
}

// 身份类型
enum class IdentityType(val code: Int, val flag: String) {
    OPERATING_UNIT(0, "运营单位"),
    BUILD_UNIT(1, "施工单位"),
    SUPPLIER(2,"供应商")
}

// 登录类型
enum class LoginType(val code: Int, val flag:String) {
    ACCOUNT_LOGIN(0, "账号登录"),
    VERIFY_CODE_LOGIN(1, "手机号登录/验证码登录"),
    WECHAT_LOGIN(2,"微信登录"),
    QQ_LOGIN(3, "QQ登录")
}

// 发送短信类型
enum class SmsCodeType(val code: Int, val flag: String) {
    REGISTER_SMS(1, "注册"),
    LOGIN_SMS(2, "登录"),
    FORGOT_PWD_SMS(3,"找回密码"),
    BIND_PHONE(4, "绑定手机号"),
}

// 任务发布状态
enum class ReleaseTaskType(val code: Int, val flag: String) {
    PENDING_REVIEW(0, "待审核"),
    AGENCY(1, "待办"),
    IN_PROGRESS(2,"在办"),
    COMMENT(3,"待评价"),
    COMPLETED(4,"已完成"),
    OVER(5,"已结束"),
    REJECTED(6,"已驳回"),
    CANCELLED(7,"已取消"),
}

// 参与任务列表状态
enum class ParticipateTaskType(val code: Int, val flag: String) {
    AGENCY(1, "待办"),
    IN_PROGRESS(2,"在办"),
    COMPLETED(4,"已完成"),
    OVER(5,"已结束"),
}

// 供应发布状态
enum class ReleaseSupplyType(val code: Int, val flag: String) {
    PENDING_REVIEW(0, "待审核"),
    TO_BE_INQUIRED(1, "待询价"),
    INQUIRED(2,"已询价"),
    CANCELLED(3,"已取消"),
    EXPIRED(4,"已过期"),
    REJECTED(5,"已驳回"),
}

// 需求发布状态
enum class ReleaseNeedsType(val code: Int, val flag: String) {
    PENDING_REVIEW(0, "待审核"),
    TO_BE_QUOTED(1, "待报价"),
    QUOTED(2,"已报价"),
    COMPLETED(3,"已完成"),
    CANCELLED(4,"已取消"),
    EXPIRED(5,"已过期"),
    REJECTED(6,"已驳回"),
}

//施工单位 审批状态
enum class ConstructionApprovalNeedsType(val code: Int, val flag: String) {
    PENDING_REVIEW(0, "待审核"),
    TO_BE_INQUIRED(1, "已通过"),
    REJECTED(6,"已驳回"),
}

enum class OperatorNeedsType(val code: Int, val flag: String) {
    PUBLISHED(1, "已发布"),
    CANCELLED(4,"已取消"),
}

// 供应审核状态
enum class SupplyApprovalType(val code: Int, val flag: String) {
    PENDING_REVIEW(0, "待审核"),
    TO_BE_INQUIRED(1, "已通过"),
    REJECTED(5,"已询价"),
}

// 发布需求类型
enum class NeedType(val code: Int, val flag: String) {
    DEVICE_FIND(0, "设备查找"),
    UNIT_FIND(1, "单位合作查找"),
    SERVICE_FIND(2,"服务查找"),
}

//提现状态
enum class WithDrawType(val code: Int, val flag: String) {
    PENDING_REVIEW(0, "待审核"),
    TO_BE_INQUIRED(1, "已通过"),
    REJECTED(2,"已驳回"),
}

// 用户信息 - 消息类别
enum class NewsQuantityType(val code: String, val flag: String) {
    TASK_PUBLISHED("10", "任务-我发布的"),
    TASK_INVOLVED("11", "任务-我参与的"),
    TASK_APPROVED("12", "任务-我审批的"),

    NEEDS_PUBLISHED("20", "需求-我发布的"),
    NEEDS_INVOLVED("21", "需求-我参与的"),
    NEEDS_APPROVED("22", "需求-我审批的"),

    SUPPLY_PUBLISHED("30", "供应-我发布的"),
    SUPPLY_INVOLVED("31", "供应-我参与的"),
    SUPPLY_APPROVED("32", "供应-我审批的"),
    PERSONNEL_AUDIT("40", "人员审核"),
    REVIEW_SUBMISSION_RECORD("41", "审核提交记录"),

}


// 常用应用 内链跳转类型
enum class CommonApplyType(val jumpLink: String, val flag: String) {

    PUBLISHED("TASK_PUTTASKLIST", "我发布的"),
    INVOLVED("TASK_TAKEPARTTASKLIST", "我参与的"),
    APPROVED("TASK_AUDITTASKLIST", "我审批的"),
    PUBLISH_TASK("TASK_ADD", "发布任务"),

    PUBLISH_NEEDS("NEEDORDER_ADD", "发布需求"),
    SUPPLY_LIST("SUPPLYORDER_TAKEPARTSUPPLYLIST", "供应列表"),

    ACCOUNT("EQUIPMENT_LIST", "我的台账"),
    BUILD_NEED_LIST("NEED_CONSTRUCTION", "施工单位-需求列表"),
    PUBLISH_SUPPLY("SUPPLYORDER_ADD", "发布供应"),
    LEARNING_CENTER("LEARNING_CENTRE", "学习中心"),
    SUPPLY_NEED_LIST("NEED_SUPPLIER", "供应商-需求列表"),
    ADVERTISING("ADVERTISING","广告宣传"),
    MY_SERVER("MY_SERVER", "我的服务"),
    PERSONNEL_AUDIT("PERSONNEL_AUDIT","人员审核"),
    REVIEW_SUBMISSION_RECORD("REVIEW_SUBMISSION_RECORD","审核提交记录"),
}